package com.hundredapp.oa.domain;

import java.sql.Timestamp;
import java.util.HashSet;
import java.util.Set;
import javax.persistence.CascadeType;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.GeneratedValue;
import static javax.persistence.GenerationType.IDENTITY;
import javax.persistence.Id;
import javax.persistence.ManyToMany;
import javax.persistence.Table;

/**
 * OaAction entity. @author MyEclipse Persistence Tools
 */
@Entity
@Table(name = "oa_action", catalog = "oa_demo")
public class OaAction implements java.io.Serializable {

	// Fields

	private Integer id;
	private String mappingAction;
	private String actionText;
	private Integer level;
	private Integer parentId;
	private Integer visible;
	private Integer leaf;
	private Integer createUserId;
	private Timestamp createTime;
	private Integer index;

	// Constructors

	/** default constructor */
	public OaAction() {
	}

	// Property accessors
	@Id
	@GeneratedValue(strategy = IDENTITY)
	@Column(name = "id", unique = true, nullable = false)
	public Integer getId() {
		return this.id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	@Column(name = "mapping_action", nullable = false, length = 45)
	public String getMappingAction() {
		return this.mappingAction;
	}

	public void setMappingAction(String mappingAction) {
		this.mappingAction = mappingAction;
	}

	@Column(name = "action_text", nullable = false, length = 45)
	public String getActionText() {
		return this.actionText;
	}

	public void setActionText(String actionText) {
		this.actionText = actionText;
	}

	@Column(name = "level", nullable = false)
	public Integer getLevel() {
		return this.level;
	}

	public void setLevel(Integer level) {
		this.level = level;
	}

	@Column(name = "parent_id", nullable = false)
	public Integer getParentId() {
		return this.parentId;
	}

	public void setParentId(Integer parentId) {
		this.parentId = parentId;
	}

	@Column(name = "visible", nullable = false)
	public Integer getVisible() {
		return this.visible;
	}

	public void setVisible(Integer visible) {
		this.visible = visible;
	}

	@Column(name = "leaf", nullable = false)
	public Integer getLeaf() {
		return this.leaf;
	}

	public void setLeaf(Integer leaf) {
		this.leaf = leaf;
	}
	
	@Column(name = "create_user_id")
	public Integer getCreateUserId() {
		return this.createUserId;
	}

	public void setCreateUserId(Integer createUserId) {
		this.createUserId = createUserId;
	}

	@Column(name = "create_time", length = 19)
	public Timestamp getCreateTime() {
		return this.createTime;
	}

	public void setCreateTime(Timestamp createTime) {
		this.createTime = createTime;
	}

	@Column(name = "index")
	public Integer getIndex() {
		return index;
	}

	public void setIndex(Integer index) {
		this.index = index;
	}

}